<?php

include('../Protocol/BDecode.php');
include('../Protocol/BEncode.php');

$tfile = BDecode(file_get_contents("WOTLK_WEB_1280_EN_SUB_XVID_PEGI.avi.torrent"));
$infohash = sha1(BEncode($tfile["info"]));
echo $infohash;

?>